package com.ms.p2p.dao;



import com.ms.p2p.entity.account.Account;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;


public interface MemberAccountDao extends CrudDao {
	public Account findByUserId(@Param("userId") int userId);


	public int updateEveryDay(@Param("date_time") String date_time,
							  @Param("money") BigDecimal money);

	public int updateEveryDayOut(@Param("date_time") String date_time,
								 @Param("money") BigDecimal money);


	public List<Map<String, Object>> findPager(@Param("userId") String userId,
											   @Param("userName") String userName,
											   @Param("begin_date") String begin_date,
											   @Param("end_date") String end_date, @Param("begin") int begin,
											   @Param("size") int pageSize);

	public int findCount(@Param("userId") String userId,
						 @Param("userName") String userName,
						 @Param("begin_date") String begin_date,
						 @Param("end_date") String end_date);

	public List<Map<String, Object>> findTG();



	public List<Account> getCollectionList(@Param("collection") String collection);

	List<Map<String,Object>> findAll(@Param("userId") String userId,
									 @Param("userName") String userName,
									 @Param("begin_date") String begin_date,
									 @Param("end_date") String end_date);

	int OperationAmount(@Param("type") String type, @Param("money")BigDecimal money, @Param("userId") int userId);

	BigDecimal sumYuebao();
}
